package com.javaweb.service;

import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;
import com.javaweb.service.dto.UserConditionDto;
import com.javaweb.service.dto.UserDto;

import java.util.List;

public interface UserService {

    User queryByName(String username);

    int register(User user);

    PageResult<User> queryUsers(UserConditionDto userCondition, Integer pageNum, Integer pageSize);

    void addAssignRole(Integer userId, List<Integer> roleIds);





}
